TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp \
    server.cpp \
    request_parser.cpp \
    request_handler.cpp \
    request.cpp \
    reply.cpp \
    mime_types.cpp \
    l_utility.cpp \
    luredis.cpp \
    lua_interface.cpp \
    l_request.cpp \
    l_reply.cpp \
    io_service_pool.cpp \
    connection.cpp \
    hiredis/util.c \
    hiredis/sds.c \
    hiredis/net.c \
    hiredis/hiredis.c \
    hiredis/dict.c \
    hiredis/async.c \
    hiredis/adlist.c \    
    UserAgentParser_types.cpp \
    UserAgentParser_constants.cpp \
    UserAgentParser.cpp \
    mobile_service.cpp \
    l_mobile_service.cpp \   
    luaext/lfs.c \
    thrift_service/IpvnService_server.skeleton.cpp \
    thrift_service/IpvnService.cpp \
    thrift_service/ipvn_service.cpp \
    thrift_service/ipvn_checker_types.cpp \
    thrift_service/ipvn_checker_constants.cpp

HEADERS += \
    server.hpp \
    request_parser.hpp \
    request_handler.hpp \
    request.hpp \
    reply.hpp \
    mime_types.hpp \
    l_utility.hpp \
    luredis.hpp \
    lua_interface.hpp \
    l_request.hpp \
    l_reply.hpp \
    io_service_pool.hpp \
    header.hpp \
    connection.hpp \
    hiredis/util.h \
    hiredis/sds.h \
    hiredis/net.h \
    hiredis/hiredis.hpp \
    hiredis/hiredis.h \
    hiredis/fmacros.h \
    hiredis/dict.h \
    hiredis/async.h \
    hiredis/adlist.h \    
    UserAgentParser_types.h \
    UserAgentParser_constants.h \
    UserAgentParser.h \
    mobile_service.hpp \
    l_mobile_service.hpp \
    lru_cache_using_boost.hpp \
    luaext/lfs.h \
    luaext/lfs.h \
    luaext/lfs.h \
    lua_interaction/luna.hpp \
    thrift_service/IpvnService.h \
    thrift_service/ipvn_service.hpp \
    thrift_service/ipvn_checker_types.h \
    thrift_service/ipvn_checker_constants.h

OTHER_FILES += \
    biz-code/TODO_biz.lua \
    biz-code/master.lua \
    biz-code/preload/conf.lua \
    biz-code/preload/biz_util.lua \
    biz-code/biz/view_mobile.lua \
    biz-code/biz/tkm.lua \
    biz-code/biz/default_biz.lua \
    biz-code/biz/cb.lua \
    biz-code/biz/_adv_gif.lua \
    biz-code/biz/_zc_1_gif.lua \
    biz-code/biz/_zc_2_gif.lua \
    biz-code/biz/_cpm4k_js.lua \
    biz-code/biz/_adc_html.lua \
    biz-code/biz/view.lua \
    biz-code/biz/click.lua \
    biz-code/biz/crossdomain_xml.lua \
    biz-code/biz/_tracking_gif.lua \
    biz-code/biz/tk.lua \
    biz-code/biz/tvc_vast.lua \
    biz-code/biz/_fr_js.lua \
    biz-code/biz/pv_gif.lua \
    biz-code/biz/eval.lua

INCLUDEPATH += $$quote(/home/khanhhh/boost_1_49_0)
LIBS += -L/home/khanhhh/boost_1_49_0/stage/lib/
INCLUDEPATH += $$quote(/home/nguyenminh/boost_1_49_0)
LIBS += -L/home/nguyenminh/boost_1_49_0/stage/lib/
LIBS += -lboost_system -lboost_thread -lpthread -lrt

# for thrift library
DEFINES += HAVE_NETINET_IN_H=yes
INCLUDEPATH += $$quote(/usr/local/include/thrift)
LIBS += -L/usr/local/lib/ -lthrift -ldl
LIBS += -L/usr/local/lib/ -lluajit-5.1


